<?php
/**
 * Pertyler DatabaseManagement
 * View
 * SelectRowGrid
 *
 * @author	Emre Hasegeli <hasegeli@gmail.com>
 * @license	GNU General Public License v3
 */

if(!($Content instanceof \Pert\Page_Content))
	return;
?>
<h4 >Unpublished Rows
</h4>

<form action=""
		method="post" >

	<table ><?php
foreach($Content->UnpublishedRowColumnValueArrayArray AS $rowId => $rowColumnValueArray)
{
?>
		<tr >
			<td >
				<input type="checkbox"
						name="Row"
						value="<?php echo $rowId;?>" />

			</td><?php
	if($Content->ApprovePrivilege)
	{
?>

			<td >
				<a href="Row.php?Table=<?php echo $Content->TableId; ?>&Row=<?php echo $rowId; ?>" >
					<img src="Button/Approved.gif" alt="Row" />
				</a>
			</td><?php
	}

	foreach($rowColumnValueArray AS $columnValue)
	{
?>

			<td ><?php echo $columnValue; ?>
			</td><?
	}
?>
		</tr><?php
}
?>
	</table><?php
if($Content->UpdatePrivilege)
{
?>

	<p >
		<input type="submit"
				name="Update"
				value="Update" />

	</p><?php
}

if($Content->UpdateAsPublishedPrivilege)
{
?>

	<p >
		<input type="submit"
				name="UpdateAsPublished"
				value="Update as published" />

	</p><?php
}

if($Content->ApprovePrivilege)
{
?>

	<p >
		<input type="submit"
				name="Approve"
				value="Approve" />

	</p>
<?php
}

if($Content->DeleteUnpublishedPrivilege)
{
?>

	<p >
		<input type="submit"
				name="Delete"
				value="Delete" />

	</p>
<?php
}
?>
</form>
